Nagios running on a cent os desk top version

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.
Locked
lukecolb
Posts: 12
Joined: Thu Apr 11, 2013 9:35 am

Nagios running on a cent os desk top version

Post by lukecolb »

Hi

Does anyone see much of a downside to this. I'd install the desktop version of cent os on a server and just run nagios on it and probably turn the gui off

The reason for this is I want to a 3g dongle to send out text alerts but can only get this working on desktop versions of linux and and not server


Luke
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios running on a cent os desk top version

Post by abrist »

You can, but you may have some pathing/env var issues depending on the installation method of nagios.
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.
lukecolb
Posts: 12
Joined: Thu Apr 11, 2013 9:35 am

Re: Nagios running on a cent os desk top version

Post by lukecolb »

I would be compiling
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios running on a cent os desk top version

Post by slansing »

You can go ahead with the installation, but you may run into issues as stated above, we recommend and support clean installations on a minimal distro installation without a GUI. Though, if you do have problems we can try to help you through them.
lukecolb
Posts: 12
Joined: Thu Apr 11, 2013 9:35 am

Re: Nagios running on a cent os desk top version

Post by lukecolb »

Thanks

This won't be the right place for this but hopefully you can point me in the right direction ideally i'd like to keep in on my clean install but if i want txt alerts working via a 3g modem I'm not sure I'll be able too.

All I do is from a clean install of desktop or server cent os and ubuntu

Install usb_modeswitch this changes the id of the usb dongle to the correct id as it thinks it’s a cd drive to begin with , this works perfectly doing lsusb shows me this.

Then

Chmod 0777 on /dev/ttyUSB2 #to give permission to the device

Then on another ssh session cat /dev/ttyUSB2

Here you see a few things about the device scroll through every so often like signal to noise etc but seeing this means I know I have the right devices as it sets up 3 ttyUSB (on different dongles it can be ttyUSB1)

Then on the first window

chat TIMEOUT 1 "" "AT+CMGF=1" "OK" > /dev/ttyUSB2 # this put its in text mode ready to except my next messages

chat TIMEOUT 1 "" "AT+CMGS=\"xxxxxxxxxxx\"" "OK" > /dev/ttyUSB2 #replace xxxxxxxxxxxxx with the mobile number

chat TIMEOUT 1 "" "Message text goes here" "OK" > /dev/ttyUSB2

chat TIMEOUT 1 "" "^Z" "OK" > /dev/ttyUSB2 # this sends the messge


On the desktop version this works perfectly from a clean install on the same hardware

On server verisons

On sending the first of the chat commands I get something like the below in the cat window

AAAAAAAAATATATATAT+AT+AT+AT+AT+AT+CAT+CAT+CAT+CAT+CAT+MCAT+MCAT+MCAT+MCAT+MCAGT+MCAGT+MCAGT+MCAGT+MCAGTF+MCAGTF+MCAGTF+MCAGTF+MCAGTF+=MCAGTF+=MCAGTF+=MCAGTF+=MCAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1


NO CARRIER


I get the same type of message if I send another chat command in the same format that just returns the make of the device but if I send it like 20 times its always different and one of them might actually work I've done so much searching and asking and go absolutly no where the strangest thing is that it does actually work ocasionly.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios running on a cent os desk top version

Post by slansing »

This is something you are going to want to contact your device vendor for as it is hard to speculate here, it is possible that you do not have the correct dependencies or that something on the server version is restricting the device's access to certain things. Once again, all speculation as we do not know the hardware nor the environment.
lukecolb
Posts: 12
Joined: Thu Apr 11, 2013 9:35 am

Re: Nagios running on a cent os desk top version

Post by lukecolb »

Thanks

I'll try but I expect the response from Vodafone will be they don't support it.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios running on a cent os desk top version

Post by slansing »

Great, let us know what you hear back.
lukecolb
Posts: 12
Joined: Thu Apr 11, 2013 9:35 am

Re: Nagios running on a cent os desk top version

Post by lukecolb »

I was refered to their developer site so i've just posted on that forum.

Once\If I've got it sorted I'll write a guide.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios running on a cent os desk top version

Post by slansing »

Awesome! I'll keep this thread open so you can pop your head in if you want to some time!
Locked