Extra note for host and services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: Extra note for host and services

Post by veenm »

Could you please tell me the format for the URL , I have given like below , but when i try to open it gives me a a error. what i am missing here

notes_url http://nagios_ipaddress/nagios/pnp/index.php?host=$HOSTNAME$

note_url display as a piece of paper icon or red folder icon please confirm.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Extra note for host and services

Post by abrist »

What is the error, be as verbose as possible?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: Extra note for host and services

Post by veenm »

getting the below error.

Not Found

The requested URL /nagios/pnp/index.php was not found on this server.
Apache/2.2.15 (Red Hat) Server at xxx Port 80
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Extra note for host and services

Post by sreinhardt »

I doubt you are able to pass the $HOSTNAME$ macro into the note, and have it output as the actual hostname for that host. Macros are not normally interpreted for notes as far as I know. Does it work properly if you enter the actual name that pnp has for that host?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: Extra note for host and services

Post by veenm »

When you say "Does it work properly if you enter the actual name that pnp has for that host" what does mean. Please tell me how to create the url , how should i create a URL format.

what configuration that i have to make to see the extra folder in red color in the host details.
Please let me know.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Extra note for host and services

Post by tmcdonald »

If instead of $HOSTADDRESS$ you manually put in the host name, such as "localhost". For example:

http://nagios_ipaddress/nagios/pnp/index.php?host=localhost

This is just an example. You should replace "localhost" with the name of the host.
Former Nagios employee
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: Extra note for host and services

Post by veenm »

If i want to add extra host information like ( server owner , type of host ..etc. ) on host details then how do i do that using nagios core....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extra note for host and services

Post by scottwilkerson »

veenm,

You can use custom object variables
http://nagios.sourceforge.net/docs/3_0/ ... tvars.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked